package com.v5ba.demo.web;
import com.v5ba.common.ResponseVO;
import com.v5ba.common.header.Header;
import com.v5ba.common.openapi.OpenAPI;
import com.v5ba.demo.extend.vo.UserService;
import com.v5ba.sms.SmsUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class ConditionalTestController {
    @Autowired
    private SmsUtil smsUtil;

    @GetMapping("sms")
    public String sms(){
        smsUtil.send("186", "你好啊");
        return "ok";
    }
}

